import request from '@/utils/request'

export function uploadImage(data,url) {
  return request({
      url: url,
      params: {
        ...data,
          files: data.files ? data.files : null,
          skuId: data.skuId ? data.skuId : 99,
      },
      method: 'post'
  })
}